home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
zkuste
/
tuning
/
download
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Startmenu Special Folders 2.xpl
< prev
next >
Wrap
Text File
|
2000-09-02
|
2KB
|
72 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="2"
"UIPATH"="Appearance\Start menu\Cascaded Items"
"NAME"="Special Folders #2"
"VERSION"="1.10"
"LANGUAGE"="VBScript"
"TEXT 1"="Show cascading "History" in Start menu"
"TEXT 2"="Show cascading "Subscriptions" in Start menu"
"DESCRIPTION 1"="Use this plug-in to show some of the "special" folder of Window in cascading menu so you can easily access them."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Start Menu"
sPath=""
sV1="History.{FF393560-C2A7-11CF-BFF4-444553540000}"
sV2="Subscriptions.{F5175861-2688-11D0-9C5E-00AA00A45957}"
'Called when the Plugin is started
SUB Plugin_Initialize
sPath=RegReadValue(sP)
if FolderExists(sPath) then
if right(sPath,1)<>"\" then sPath=sPath & "\"
if FolderExists(sPath & sV1) then SetUIElement 1,true
if FolderExists(sPath & sV2) then SetUIElement 2,true
else
Disable
end if
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
if FolderExists(sPath & sV1)=false then
Call FolderCreate(sPath & sV1)
end if
else
if FolderExists(sPath & sV1)=true then
FolderDelete(sPath & sV1)
end if
end if
b=GetUIElement(2)
if b=true then
if FolderExists(sPath & sV2)=false then
Call FolderCreate(sPath & sV2)
end if
else
if FolderExists(sPath & sV2)=true then
FolderDelete(sPath & sV2)
end if
end if
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB